
<!--top结束-->
<div class="mian">
    <div class="mian1">
        <div class="mian2">
            <!--left start-->
            <?php $this->load->view('defaults/common/left'); ?>
            <!--left end-->
            <!--right start-->
            <div class="right">
                <!--breadcrumb start-->
                <div class="righta"><?= $this->breadcrumb->generateHTML(); ?> </div>
                <!--breadcrumb end-->
                <!-- contents start -->
                <div id="contents">
                    <div id="contents_container">
                        <form id='add_grid_form' action="<?= blang_url('wms/GridManage/add') ?>" method="post" name="myform" onsubmit="return myform_submit()" autocomplete="off" >
                            <table cellpadding="0" cellspacing="0" id="table_forms" border="1">
                                <tr>
                                    <td class="forms_left"><?=lang('wms_ckmc')?>:</td>
                                    <td>                                        <select  name="whs_code"  placeholder="whs_code">
                                           <?php foreach($whsCode as $oneWhs){?>
                                                  <option value ="<?=$oneWhs?>"><?=$oneWhs?></option>  
                                                                        <?php }?>
                                        </select></td>
                                </tr>
                                <tr>
                                    <td class="forms_left"><?=lang('wms_hjmc')?>:</td>
                                    <td><input type="text" name="grid_name" value="" /></td>
                                </tr>
                                <tr>
                                    <td class="forms_left"><?=lang('wms_hjbh')?>:</td>
                                    <td>
                                        <select name="frame_prefix" value="" style=" width:150px">
                                            <option value="A">A</option>
                                            <option value="B">B</option>
                                            <option value="C">C</option>
                                            <option value="D">D</option>
                                            <option value="E">E</option>
                                            <option value="F">F</option>
                                            <option value="G">G</option>
                                            <option value="H">H</option>
                                            <option value="J">J</option>
                                            <option value="K">K</option>
                                            <option value="L">L</option>
                                            <option value="M">M</option>
                                            <option value="N">N</option>
                                            <option value="P">P</option>
                                            <option value="Q">Q</option>
                                            <option value="R">R</option>
                                            <option value="S">S</option>
                                            <option value="T">T</option>
                                            <option value="U">U</option>
                                            <option value="V">V</option>
                                            <option value="W">W</option>
                                            <option value="X">X</option>
                                            <option value="Y">Y</option>
                                            <option value="Z">Z</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="forms_left"><?=lang('wms_hjc')?>:</td>
                                    <td>                                  
                                        <select name="at_row" value="" style=" width: 150px">
                                            <option value="1">1</option>
                                            <option value="2">2</option>
                                            <option value="3">3</option>
                                            <option value="4">4</option>
                                            <option value="5">5</option>
                                            <option value="6">6</option>
                                            <option value="7">7</option>
                                            <option value="8">8</option>
                                            <option value="9">9</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="forms_left"><?=lang('wms_hjg')?>:</td>
                                    <td>
                                        <select name="at_col" value="" style=" width: 150px">
                                            <option value="1">1</option>
                                            <option value="2">2</option>
                                            <option value="3">3</option>
                                            <option value="4">4</option>
                                            <option value="5">5</option>
                                            <option value="6">6</option>
                                            <option value="7">7</option>
                                            <option value="8">8</option>
                                            <option value="9">9</option>
                                        </select>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2" class="sub_padding_right">
                                        <input type="submit" value="<?=lang('public_tj')?>" name="submits" style="margin-right: 20px;width: 150px; height: 30px;"/>
                                    </td>
                                </tr>
                            </table>
                        </form>
                    </div>
                </div>
                <!-- contents end -->
            </div>
            <!--right end-->
            <div class="clear"></div>
        </div>
    </div>
</div>
<script type="text/javascript">
    $(window).load(function() {
        $('input[name="grid_name"]').focus();
    }); 
    $('input[name="grid_name"]').bind('keypress', function (event) {
        if (event.keyCode == "13") {
            $('input[name="frame_prefix"]').focus();
        }
    });
    $('input[name="frame_prefix"]').bind('keypress', function (event) {
        if (event.keyCode == "13") {
            $('input[name="at_row"]').focus();
        }
    });
    $('input[name="at_row"]').bind('keypress', function (event) {
        if (event.keyCode == "13") {
            $('input[name="at_col"]').focus();
        }
    });
    $('input[name="at_col"]').bind('keypress', function (event) {
        if (event.keyCode == "13") {
            $('input[name="frame_prefix"]').focus();
        }
    });
</script>

